package org.zero.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zero.domain.UserDO;

/**
 * @author Zero
 */
@Mapper
public interface UserMapper {
    /**
     * 查询所有用户
     *
     * @return
     */
    List<UserDO> findAll();

    /**
     * 根据id查询用户
     *
     * @param id
     * @return
     */
    UserDO findOne(int id);
}
